package com.atguigu.exer.meiju2;

public class TestTrafficLight {
    public static void main(String[] args) {
        TrafficLight t = TrafficLight.RED;

        System.out.println("初始状态：" +t);
        for(int i = 1; i<=10;i++){
            t = t.nextState();
            System.out.println("第" +i +"次nextState之后：" + t);
        }
        System.out.println("最终：" + t);
    }
}
